<%@ page import="com.hqyj.cl.pojo.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 小帅
  Date: 2021/9/17
  Time: 14:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>企业管理中心</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/admin.css">
    <script src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/jqPaginator.js"></script>
</head>
<body>
<div class="header bg-main" id="index">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="${pageContext.request.contextPath}/static/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />企业管理中心</h1>
    </div>
    <div class="head-l">
        <a class="button button-little bg-green" href="${pageContext.request.contextPath}/userServlet?method=BackHome" target="_self"><span class="icon-home"></span> 前台首页</a>
        &nbsp;&nbsp;
        <a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span> 清除缓存</a>
        &nbsp;&nbsp;<a class="button button-little bg-red" href="${pageContext.request.contextPath}/user/login"><span class="icon-power-off"></span> 退出登录</a>
        <span id="time" <%--class="button button-little border-blue"--%> style="font-size: 26px;color: honeydew;margin-left: 400px;" href=""><span class="icon-power-off"></span></span>
        <span>
            <ul class="layui-nav" lay-filter="">
            <li class="layui-nav-item">
                <a href="" title="消息">
                    <i class="layui-icon" style="top: 1px;">&#xe63a;</i>
                </a>
            </li>
            <li class="layui-nav-item"><img src="${pageContext.request.contextPath}/static/images/logo.png" class="layui-circle" style="border: 2px solid #A9B7B7;" width="35px" alt=""></li>
            <li class="layui-nav-item"> <a href="javascript:;">admin</a>
                <dl class="layui-nav-child">
                    <!-- 二级菜单 -->
                    <dd><a href="javascript:;" onclick="member_show('张三','member-show.html','10001','360','400')">个人信息</a></dd>
                    <dd><a href="">切换帐号</a></dd>
                    <dd><a href="javascript:;" onclick="logout()">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item x-index"><a href="#index">前台首页</a></li>
        </ul>
        </span>
    </div>
</div>
</div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>基本设置</h2>
    <ul style="display:block">
        <%--<c:if test="">
            <li><a href="${pageContext.request.contextPath}/jsp/userlist.jsp" target="right"><span class="icon-caret-right"></span>用户设置</a></li>
        </c:if>--%>
        <li><a href="${pageContext.request.contextPath}/sys/goUserList" target="right"><span class="icon-caret-right"></span>用户设置</a></li>
    </ul>

   <%-- <h2><span class="icon-pencil-square-o"></span>统计报表</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>
    <h2><span class="icon-pencil-square-o"></span>用户管理</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>用户信息</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>用户登录记录</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>
    <h2><span class="icon-pencil-square-o"></span>新闻公告管理</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>
    <h2><span class="icon-pencil-square-o"></span>民宿管理</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>--%>
</div>

<script type="text/javascript">
    $(function(){
        $(".leftnav h2").click(function(){
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function(){
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="{:U('Index/info')}" target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="${pageContext.request.contextPath}/info.html" name="right" width="100%" height="100%"></iframe>
</div>
<div style="text-align:center;">
    <p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
<script>
    function getTime(){
        var myDate = new Date();
        var myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
        var myMonth = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
        var myToday = myDate.getDate(); //获取当前日(1-31)
        var myDay = myDate.getDay(); //获取当前星期X(0-6,0代表星期天)
        var myHour = myDate.getHours(); //获取当前小时数(0-23)
        var myMinute = myDate.getMinutes(); //获取当前分钟数(0-59)
        var mySecond = myDate.getSeconds(); //获取当前秒数(0-59)
        var week = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'];
        var nowTime;

        nowTime = myYear+'-'+fillZero(myMonth)+'-'+fillZero(myToday)+'&nbsp;&nbsp;'+fillZero(myHour)+':'+fillZero(myMinute)+':'+fillZero(mySecond)+'&nbsp;&nbsp;'+week[myDay]+'&nbsp;&nbsp;';
//console.log(nowTime);
        $('#time').html(nowTime);
    };
    function fillZero(str){
        var realNum;
        if(str<10){
            realNum	= '0'+str;
        }else{
            realNum	= str;
        }
        return realNum;
    }
    setInterval(getTime,1000);
    //顶部时间


</script>
</body>
</html>
